import 'dart:convert';

import '../../generated/json/base/json_field.dart';
import '../../generated/json/login_info_entity.g.dart';

@JsonSerializable()
class LoginInfoEntity {
  String? uid;
  String? token;
  int? ttl;
  int? expires;

  LoginInfoEntity();

  factory LoginInfoEntity.fromJson(Map<String, dynamic> json) =>
      $LoginInfoEntityFromJson(json);

  Map<String, dynamic> toJson() => $LoginInfoEntityToJson(this);

  @override
  String toString() {
    return jsonEncode(this);
  }
}
